import {HttpClient} from "@angular/common/http";
import {Injectable} from "@angular/core";
import {AppUrl, TIME_OUT} from "../../../../app/app.general";
import {Observable} from "rxjs/Observable";
import {AppConfig} from "../../../../app/appConfig";

@Injectable()
export class TableQrService{

  constructor(private http:HttpClient,
              public appConfig:AppConfig){
  }

  getUserId(){
    return this.http.get(AppUrl.auth.userId).timeout(TIME_OUT);
  }

  getRid():Observable<any>{
    return this.http.get(AppUrl.auth.rId);
  }

  getTables():Observable<any>{
    return this.http.get(AppUrl.table.getTables).timeout(TIME_OUT)
  }

  // getZip():Observable<any>{
  //   return this.http.get(AppUrl.table.getZip).timeout(TIME_OUT);
  // }

  // getAllTableCode():Observable<any>{
  //   return this.http.get(AppUrl.image.getAllTableCode).timeout(TIME_OUT);
  // }

}
